package org.asg.dis.repository;

import org.asg.dis.model.Message;
import org.asg.dis.model.MessageStatus;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface MessageRepository extends JpaRepository<Message, Long> {
    List<Message> findByReceiverAndStatus(Long receiver, MessageStatus status);
}

